package com.justgame.project.cloud.common.query;

import java.util.ArrayList;
import java.util.List;

public class BaseSelect {
    private final List<Query> queries;

    protected BaseSelect(){
        queries = new ArrayList<>();
    }

    protected BaseSelect(List<Query> queries) {
        this.queries = queries;
    }

    public Query[] getQueriesArray() {
        return queries.toArray(new Query[0]);
    }

    public Query[] build(){
        return queries.toArray(new Query[0]);
    }
}
